package com.fast.develop.dm.core.data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 莫寅
 * @createTime 2022-06-05 18:36
 * @desc：
 */
public class Page<T> {

    private final long total;

    private final List<T> content = new ArrayList<>();

    private Pageable pageable;

    public Page(long total, List<T> content, Pageable pageable) {
        this.total = total;
        this.content.addAll(content);
        this.pageable = pageable;
    }

    public long getTotal() {
        return total;
    }

    public List<T> getContent() {
        return content;
    }

    public Pageable getPageable() {
        return pageable;
    }
}
